package com.jt.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
//在IDEA中安装lombok插件，然后在pom文件引入插件（jar包），有以下功能注解：
@Data//默认生成get/set/toString/hashcode
@Accessors(chain = true)//开启链式加载
@NoArgsConstructor//无参构造
@AllArgsConstructor//全参构造
public class Car {
    private Integer id;
    private String name;
    private String type;

    //pojo中必须有set/get
  /*  public Car setname(String name){
        this.name = name;
        return this;
    }*/

}
